package com.tuozixuan.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.tuozixuan.filter.DemoFilter;
import com.tuozixuan.filter.ErrorFilter;
import com.tuozixuan.filter.IpFilter;

@Configuration
public class FilterConfig {
    
    @Bean
    public IpFilter ipFilter() {
        return new IpFilter();
    }
    
    @Bean
    public DemoFilter demoFilter() {
        return new DemoFilter();
    }
    
    @Bean
    public ErrorFilter errorFilter() {
        return new ErrorFilter();
    }
}
